/* ============================================================
   17-documents.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */
/* ---- Card ---- */
.doc-card {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.doc-card__header,
.doc-card__footer {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,.02);
}

.doc-card__body {
    padding: 14px 16px;
}

.doc-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .2px;
}

.doc-card__title-icon {
    opacity: .8;
}

/* ---- Actions / Buttons ---- */
.doc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: inherit;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

    .doc-btn:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.16);
    }

    .doc-btn:active {
        transform: translateY(1px);
    }

    .doc-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.doc-btn--primary {
    border-color: rgba(46, 125, 255, .35);
    background: rgba(46, 125, 255, .12);
}

.doc-btn--ghost {
    background: transparent;
}

/* ---- List ---- */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

    .doc-row:hover {
        background: rgba(255,255,255,.04);
        border-color: rgba(255,255,255,.14);
    }

    .doc-row:active {
        transform: translateY(1px);
    }

.doc-row__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.doc-row__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-row__name {
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-row__sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.doc-row__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---- Icon Buttons ---- */
.doc-iconbtn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

    .doc-iconbtn:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.16);
    }

    .doc-iconbtn:active {
        transform: translateY(1px);
    }

.doc-iconbtn--danger {
    border-color: rgba(255, 80, 80, .28);
    background: rgba(255, 80, 80, .08);
}

/* ---- Pager ---- */
.doc-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-pager__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

.doc-input {
    width: 56px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-weight: 650;
}

/* ---- Upload Box ---- */
.doc-upload {
    margin-bottom: 12px;
}

.doc-uploadbox {
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,.18);
    background: rgba(255,255,255,.02);
    padding: 12px;
}

.doc-uploadbox__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-uploadbox__input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

.doc-uploadbox__actions {
    display: flex;
    gap: 10px;
}

/* ---- Helpers ---- */
.doc-muted {
    opacity: .75;
}

.doc-dot {
    opacity: .45;
}

.doc-pill {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

/* ---- Empty ---- */
.doc-empty {
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,.14);
    padding: 22px 16px;
    text-align: center;
    background: rgba(255,255,255,.02);
}

.doc-empty__icon {
    font-size: 28px;
    opacity: .75;
}

.doc-empty__title {
    margin-top: 8px;
    font-weight: 750;
}

.doc-empty__sub {
    margin-top: 6px;
    opacity: .75;
    font-size: 13px;
}

/* ---- Alert ---- */
.doc-alert {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

.doc-alert--danger {
    border-color: rgba(255, 80, 80, .25);
    background: rgba(255, 80, 80, .08);
}

/* ============================================================
   Bild-Karussell neben der Beschreibung � hell, App-eigene Werte
   (kein MudBlazor, kein Kanban-CSS)
   ============================================================ */
.img-carousel {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #f3f3f3;
    border-radius: .5rem;
    padding: 10px 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.img-carousel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: #4B5675;
    margin-bottom: 8px;
}

.img-carousel__title {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.img-carousel__counter {
    color: #8c9097;
    font-size: .75rem;
}

.img-carousel__stage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.img-carousel__nav {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #f3f3f3;
    background: #fff;
    color: #4B5675;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .img-carousel__nav:hover {
        background: #009ee0;
        color: #fff;
        border-color: #009ee0;
    }

.img-carousel__imgwrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 220px;
    background: #f7f8fa;
    border: 1px solid #f3f3f3;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.img-carousel__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.img-carousel__loading {
    color: #8c9097;
    font-size: 1.4rem;
}

.img-carousel__pending {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,158,224,.12);
    color: #009ee0;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.img-carousel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.img-carousel__name {
    font-size: .75rem;
    color: #8c9097;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

.img-carousel__remove {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(230,83,60,.25);
    background: rgba(230,83,60,.06);
    color: #e6533c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

    .img-carousel__remove:hover {
        background: rgba(230,83,60,.14);
    }

.img-carousel__error {
    margin-top: 8px;
    font-size: .75rem;
    color: #e30613;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   CleverHelp Media-Upload (ComponentMediaUpload.razor)
   Hell, App-eigene Werte (kein MudBlazor)
   ============================================================ */
.mu-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

    .mu-form label {
        font-size: .8rem;
        font-weight: 600;
        color: #4B5675;
        margin-top: 6px;
    }

    .mu-form .form-control {
        border: 1px solid #f3f3f3;
        border-radius: .4rem;
        padding: 8px 10px;
        background: #fff;
        color: inherit;
    }

    .mu-form textarea.form-control {
        min-height: 70px;
        resize: vertical;
    }

.mu-hint {
    font-size: .75rem;
    color: #8c9097;
    margin-top: 2px;
}

.mu-error {
    margin-top: 8px;
    font-size: .8rem;
    color: #e30613;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mu-info {
    margin-top: 8px;
    font-size: .8rem;
    color: #009ee0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mu-actions {
    margin-top: 12px;
}

    .mu-actions .card-btn.disabled {
        opacity: .6;
        pointer-events: none;
    }

/* ---- Upload als Slide-in-Panel von links ---- */
.mu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 1090;
}

    .mu-backdrop.mu-open {
        opacity: 1;
        visibility: visible;
    }

.mu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -2px 0 18px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1091;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .mu-drawer.mu-open {
        transform: translateX(0);
    }

.mu-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f3f3;
}

.mu-drawer-title {
    font-weight: 700;
    color: rgb(28, 48, 115);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mu-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8c9097;
    border: 1px solid #f3f3f3;
}

    .mu-close:hover {
        background: #f3f3f3;
        color: #4B5675;
    }

.mu-drawer-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
}
